const fs = require('fs');
var http = require('http');
var html = fs.readFileSync('./index.html');
var Jsonn = fs.readFileSync('./a.json');
console.log(typeof(Jsonn));
http.createServer((req, res) => {
	console.log(req.url);
	if(req.url === '/') {
		res.end(html);
	}
	if(req.url === '/getlist') {
		res.end(Jsonn);
	}
}).listen(8081);

